package com.guigui.gulimall.product.feign;

import com.guigui.common.dto.elastic.SkusElasticModel;
import com.guigui.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author xin
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 保存上架商品
     * @param elasticModels
     * @return
     */
    @PostMapping("/search/save")
    R productSaveAndUp(@RequestBody List<SkusElasticModel> elasticModels);
}
